package com.meiyu.live.net.param;

import com.meiyu.live.comm.Constant;
import com.meiyu.live.util.Md5;

public class ThirdLoginParams extends BaseBodyParams {

    private String third_id;
    private String platform;
    private String device_id;
    private String name;
    private String avatar;
    private String third_key;
    private String sex;
    private String unionid;

    public ThirdLoginParams(String third_id, String platform, String name, String sex, String avatar, String device_id, String unionid) {
        this.third_id = third_id;
        this.platform = platform;
        this.name = name;
        this.avatar = avatar;
        this.device_id = device_id;
        this.sex = sex;
        this.unionid = unionid;
        this.third_key = Md5.toMD5(third_id + platform + "66tv").toLowerCase();
    }

    @Override
    public String getUrl() {
        return Constant.UrlParams.THIRDLOGIN;
    }
}